@charset "UTF-8";

/**
 * @desc 全站公共样式
 * @author 大志
 * @uupate kyle
 * @date 2019-07-30
 */
.animated {
  animation-duration: 0.3s !important;
}

/* 登录页部分logo */
.login-logo {
  padding: 60px 0;
  &__img {
    width: 400px;
    display: block;
    margin: auto;
  }
}

.mod-protocol {
  width: 100%;
  position: absolute;
  bottom: 10px;
  padding: 0 10px;
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
  font-size: 24px;
}

/* 长弹窗锁定body背景 */
body.dialog-open {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

/* 有背景的头部 */
.head-bg-box {
  position: absolute;
  width: 100%;
  height: 280px;
  border-radius: 0 0 30% 30%;
  z-index: -1000;
}
.page-content-box {
  border-radius: 0 0 12px 12px;
  z-index: 2;
  .total-box {
    min-height: 170px;
    box-shadow: 1px 3px $colorBorder;
    z-index: $zIndexHeader;
  }
}

/* 列表左侧标题 */
.list-title {
  min-width: 200px;
}

/* 商家标签 */
.shopTag {
  font-size: 20px;
  line-height: 30px;
  height: 32px;
  min-width: 100px;
  text-align: center;
  @include color-second();
  border-radius: 8px;
  border: 1px solid currentColor;
  padding: 0 10px;
  margin: 0 10px 10px 0;
}
/* 箭头*/
.arrow:after {
  content: '';
  position: absolute;
  height: 10px;
  width: 10px;
  z-index: 100;
  right: -20px;
  top: 6px;
  border: 1px solid;
  border-color: transparent currentColor currentColor transparent;
  transform: rotate(-45deg);
  -ms-transform: rotate(-45deg); /* IE 9 */
  -moz-transform: rotate(-45deg); /* Firefox */
  -webkit-transform: rotate(-45deg); /* Safari 和 Chrome */
  -o-transform: rotate(-45deg);
}

// 加减按钮
.btn-input-box {
  position: relative;
  margin: 0 4px;
  &:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: currentColor;
    opacity: 0.1;
  }
  .btn-input {
    position: relative;
    z-index: 1;
    height: 56px;
    width: 80px;
    line-height: 1;
    border: none;
    // background: transparent;
    text-align: center;
  }
}
.btn-minus,
.btn-plus {
  position: relative;
  font-size: 45px;
  line-height: 56px;
  height: 56px;
  width: 56px;
  text-align: center;
  overflow: hidden;
  border-radius: 0 8px 8px 0;
  &:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: currentColor;
    opacity: 0.1;
  }
}
.btn-minus {
  border-radius: 8px 0 0 8px;
}

// 复选框
.checkbox {
  position: relative;
  &:before {
    content: '';
    display: inline-block;
    position: absolute;
    width: 32px;
    height: 32px;
    border: 1px solid $colorC;
    border-radius: 50%;
    right: 0;
  }
}
.checked {
  &:before {
    @include bg-primary();
    @include border-primary();
  }
  &:after {
    content: '';
    position: absolute;
    width: 8px;
    height: 15px;
    transform: rotate(45deg);
    border: 1px solid;
    border-color: transparent $colorF $colorF transparent;
    right: 12px;
    top: 5px;
  }
}
.ft-color1 {
  color: #333333;
}
